// @ts-ignore
/* eslint-disable */
import {request} from '@umijs/max';

/** 此处后端没有提供注释 POST /sdkInfo/add */
export async function addSdkInfo(body: API.SdkInfoAddRequest, options?: { [key: string]: any }) {
  return request<API.BaseResponseLong>('/sdkInfo/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 POST /sdkInfo/delete */
export async function deleteSdkInfo(body: API.DeleteRequest, options?: { [key: string]: any }) {
  return request<API.BaseResponseBoolean>('/sdkInfo/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 GET /sdkInfo/get/vo */
export async function getSdkInfoVoById(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getSdkInfoVOByIdParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseSdkInfoVO>('/sdkInfo/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 POST /sdkInfo/list/page/vo */
export async function listSdkInfoVoByPage(
  body: API.SdkInfoQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageSdkInfoVO>('/sdkInfo/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 POST /sdkInfo/update */
export async function updateSdkInfo(
  body: API.SdkInfoUpdateRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean>('/sdkInfo/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
